package com.sky.loveshop.mapper;

import com.sky.loveshop.entity.Category;
import com.sky.loveshop.entity.qo.CategoryQO;
import com.sky.loveshop.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper extends MyMapper<Category> {

    List<Category> searchAll(CategoryQO categoryQO);

    Category getCategoryById(@Param("id") Integer id);

    Integer delCategoryById(@Param("id") Integer id);

    Integer updateCategoryById(Category category);

    Integer insertOne(Category category);

    List<Category> getCategoryListByIds(@Param("ids") List<Integer> ids);
}